package com.youthfilmic.yuejian.dao;

import com.youthfilmic.yuejian.domain.Comment;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.CrudRepository;

/**
 * Created by youweixi on 15/10/14.
 */
public interface CommentDao extends CrudRepository<Comment,Long> {

    Page<Comment> findAll(Pageable pageable);

    Page<Comment> findByToUserId( Long toUSerId , Pageable pageable);

}
